An Enhanced Version of Pattern Matching Algorithm using Bitwise XOR Operation
نویسندگان
چکیده
In this study, a new algorithm for the traditional pattern matching problem has been proposed. This algorithm is a modified version of KMP algorithm and using bitwise XOR operation to process two characters (or bytes) in parallel, to speed up the pattern matching process. An additional loop to avoid the undesirable comparison(s) also been introduced and let the algorithm to initiate, and continue only the essential comparisons from the required location. As the new algorithm uses the principle of Finite automata which is used by KMP algorithm and Bitwise XOR operation to speed up the character match, it shows some reasonable performance improvement. Also this new algorithm is easy to implement as it doesn't require any additional/complex data structure(s) and suitable for DNA sequence search.
منابع مشابه
A Novel Image Encryption Approach using Matrix Reordering
Transmission and storage of multimedia data like audio, video, and images over the Internet has increased in today’s digital communication. Among the different multimedia data, images are transmitted and used very often. It is essential to protect the multimedia data from unauthorized disclosure during transmit. A novel approach for encrypting digital images using Matrix Reordering (MR), a kind...
متن کاملThe Synchronization Power of Atomic Bitwise Operations
In a distributed system, processes must reach a certain level of synchronization to solve a common problem. The strongest form of synchronization can be reached through consensus: all the processes must agree on a common value that has been proposed by one of them. Consensus is universal in shared memory systems: any type of shared object can be implemented using it. Unfortunately, consensus is...
متن کاملA Key Dependent Encryption Algorithm Based on Multiple Bitwise-Shuffling and XOR Variable-Length Partitions
Email: [email protected] Abstract: This new algorithm employs shuffling procedures combined with variable-length key-dependent XOR and S-box substitutions to perform lossless image encryption. This algorithm was implemented and tested by performing different permutations of shuffling, XOR encryption and S-box substitution. Empirical analysis using different types of test images of different s...
متن کاملMultiple-Pattern Matching Using Improved Bit-Parallel Approach
We consider a fundamental problem testing if every bit is zero in a bit vector in a so-called bit-parallel machine. In this machine, a machine word can have unlimited number of bits, and logical operations such as bitwise-and, bitwise-or, and so on, can be done in O(1) time. However, in each time, only one bit in a bit vector can be examined. We show how to solve this fundamental problem in O(1...
متن کاملExact Circular Pattern Matching Using the BNDM Algorithm
In this paper, we discuss a problem that performs searching a circular string on text from bitparallelism. Given a string X = x1x2 · · ·xm, a string X = xixi+1 · · ·xmx1 · · ·xi−1, for 1 ≤ i ≤ m, is a circular string of X. Given a text string T = t1t2 · · · tn and a pattern P , the circular pattern matching problem is to find all occurrences of P i in the text T . Our algorithm only uses the co...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2013